#include <iostream>
using namespace std;
int caracter (string cadena,char l);
int main()
{

    cout<<caracter("mauro",'a');

    return 1;

}

int caracter (string cadena,char l)
{
    int i;
    i=0;
    while (cadena.length()>i)
    {

        if(cadena[i]==l)
        {
            return i+1;
        }

        i=i+1;

    }
    return -1;
}
